import request from '@/https/request.js'

// 获取用户菜单权限
export const getUserMenuList = () => {
    const username = localStorage.getItem('username') // 从localStorage获取用户名
    return request({
        url: `/api/v1/users/getRoleOperateList/${username}`,
        method: 'get'
    })
}

//动态获取菜单
export const getMenus = ()=>{
    return request({
        url:"../json/menu.json",
        method:'get'
    })
}